package com.findFish.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.system.mapper.RobotFishMaintenanceMapper;
import com.findFish.system.domain.RobotFishMaintenance;
import com.findFish.system.service.IRobotFishMaintenanceService;

/**
 * 机器鱼维护记录Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class RobotFishMaintenanceServiceImpl implements IRobotFishMaintenanceService 
{
    @Autowired
    private RobotFishMaintenanceMapper robotFishMaintenanceMapper;

    /**
     * 查询机器鱼维护记录
     * 
     * @param id 机器鱼维护记录主键
     * @return 机器鱼维护记录
     */
    @Override
    public RobotFishMaintenance selectRobotFishMaintenanceById(Long id)
    {
        return robotFishMaintenanceMapper.selectRobotFishMaintenanceById(id);
    }

    /**
     * 查询机器鱼维护记录列表
     * 
     * @param robotFishMaintenance 机器鱼维护记录
     * @return 机器鱼维护记录
     */
    @Override
    public List<RobotFishMaintenance> selectRobotFishMaintenanceList(RobotFishMaintenance robotFishMaintenance)
    {
        return robotFishMaintenanceMapper.selectRobotFishMaintenanceList(robotFishMaintenance);
    }

    /**
     * 新增机器鱼维护记录
     * 
     * @param robotFishMaintenance 机器鱼维护记录
     * @return 结果
     */
    @Override
    public int insertRobotFishMaintenance(RobotFishMaintenance robotFishMaintenance)
    {
        return robotFishMaintenanceMapper.insertRobotFishMaintenance(robotFishMaintenance);
    }

    /**
     * 修改机器鱼维护记录
     * 
     * @param robotFishMaintenance 机器鱼维护记录
     * @return 结果
     */
    @Override
    public int updateRobotFishMaintenance(RobotFishMaintenance robotFishMaintenance)
    {
        return robotFishMaintenanceMapper.updateRobotFishMaintenance(robotFishMaintenance);
    }

    /**
     * 批量删除机器鱼维护记录
     * 
     * @param ids 需要删除的机器鱼维护记录主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishMaintenanceByIds(Long[] ids)
    {
        return robotFishMaintenanceMapper.deleteRobotFishMaintenanceByIds(ids);
    }

    /**
     * 删除机器鱼维护记录信息
     * 
     * @param id 机器鱼维护记录主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishMaintenanceById(Long id)
    {
        return robotFishMaintenanceMapper.deleteRobotFishMaintenanceById(id);
    }
}
